<?php
	if(is_array($_POST['post_id'])) {
		$brand_id = $_POST['brand_id'];
		$sql = "DELETE FROM `tbl_brand` WHERE  `brand_id`  IN (". implode (',',$brand_id) .")";
	} else {
		$brand_id = $params[0];
		$sql = "DELETE FROM `tbl_brand` WHERE  `brand_id` = '$brand_id' LIMIT 1";
	}
	mysql_query($sql);
	exit;
?>